    <?php  include VIEWPATH.'common/head.php';  ?>
    <!-- 日期组件 -->
    <link href="<?php echo FONT_PATH.'static/bootstrap/';?>css/bootstrap-datetimepicker.min.css" rel="stylesheet">
    <script src="<?php echo FONT_PATH.'static/bootstrap/';?>js/bootstrap-datetimepicker.js"></script>
    <!-- 日期组件 -->

    <body class="gray-bg">
    <div class="wrapper wrapper-content ">
        <div class="add-btn" style="float:right;margin-bottom:5px;">
            <div class="modal fade" id="order_detail" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="display: none;">
                <div class="modal-dialog" style="width: 80%;"><div class="modal-content"></div></div>
            </div>
        </div>
        <div class="add-btn" style="float:right;margin-bottom:5px;">
            <div class="modal fade" id="order_audit" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="display: none;">
                <div class="modal-dialog" style="width: 50%;"><div class="modal-content"></div></div>
            </div>
        </div>
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5><?php echo $pageTitle;?></h5>
                        <div class="ibox-tools">
                            <a class="collapse-link">
                                <i class="fa fa-chevron-up"></i>
                            </a>
                            <a class="close-link">
                                <i class="fa fa-times"></i>
                            </a>
                        </div>
                    </div>
                    <div class="ibox-content">
                        <form class="form-horizontal" name="search" action="index.php?c=<?php echo $_REQUEST["c"];?>&m=<?php echo $_REQUEST["m"];?>" method="post">

                            <div class="form-group">
                                <div style="border-bottom: 1px solid #cccccc; text-align: center;">
                                    帖子信息
                                </div>
                            </div>

                            <div class="form-group">
                                <div class="text-right col-sm-2">
                                    <label  class=" control-label">内容:</label>
                                </div>
                                <div class="col-sm-6">
                                    <textarea cols="55" rows="4" name="desc" class="form-control" ><?php echo $data['desc']?></textarea>
<!--                                    <input type="text" class="form-control" name="order_search_name" value="--><?php //echo $_REQUEST["order_search_name"];?><!--"/>-->
                                </div>

                            </div>
                            <div class="form-group">
                                <div class="text-right col-sm-2">
                                    <label  class=" control-label">发布时间:</label>
                                </div>
                                <div class="col-sm-3">
                                    <input type="text" class="form-control" name="add_time" value="<?php echo date("Y-m-d H:i:s",$data['add_time']);?>"/>
                                </div>
                                <div class="col-sm-3">
                                    <label  class=" control-label" style="color: #cccccc;font-weight:200;"> * 发布时间格式 2016-02-01 12:11:22</label>
                                </div>

                            </div>

                            <div class="form-group">
                                <div class="text-right col-sm-2">
                                    <label  class=" control-label">帖子状态:</label>
                                </div>
                                <div class="col-sm-5">
                                    <label><input type="radio" name="status" <?php echo $data['status'] ==0?"checked":""?> value="0">审核</label>
                                    <label><input type="radio" name="status" <?php echo $data['status'] ==1?"checked":""?>  value="1">成功</label>
                                    <label><input type="radio" name="status" <?php echo $data['status'] ==2?"checked":""?>  value="2">未通过</label>
                                    <label><input type="radio" name="status" <?php echo $data['status'] ==3?"checked":""?>  value="3">已删除</label>
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="text-right col-sm-2">
                                    <label  class=" control-label">是否精华:</label>
                                </div>
                                <div class="col-sm-5">
                                    <label><input type="radio" name="is_hot" <?php echo $data['is_hot'] ==0?"checked":""?> value="0">否</label>
                                    <label><input type="radio" name="is_hot" <?php echo $data['is_hot'] ==1?"checked":""?>  value="1">是</label>

                                </div>
                            </div>

                            <div class="form-group">
                                <div class="text-right col-sm-2">
                                    <label  class=" control-label">是否有图片:</label>
                                </div>
                                <div class="col-sm-5">
                                    <label  class=" control-label" ><?php echo $data['pic_id']>0?"有":"无"?></label>
                                </div>
                            </div>

                            <div class="form-group">
                                <div class="text-right col-sm-2">
                                    <label  class=" control-label">点赞数:</label>
                                </div>
                                <div class="col-sm-3">
                                    <input type="text" class="form-control" name="like_num" value="<?php echo $data['like_num'];?>"/>
                                </div>
                            </div>

                            <div class="form-group">
                                <div class="text-right col-sm-2">
                                    <label  class=" control-label">分享数:</label>
                                </div>
                                <div class="col-sm-3">
                                    <input type="text" class="form-control" name="share_num" value="<?php echo $data['share_num'];?>"/>
                                </div>
                            </div>

                            <div class="form-group">
                                <div class="text-right col-sm-2">
                                    <label  class=" control-label">Pv量:</label>
                                </div>
                                <div class="col-sm-3">
                                    <input type="text" class="form-control" name="pv_num" value="<?php echo $data['pv_num'];?>"/>
                                </div>
                            </div>

                            <div class="form-group">
                                <div class="text-right col-sm-2">
                                    <label  class=" control-label">曝光量:</label>
                                </div>
                                <div class="col-sm-3">
                                    <input type="text" class="form-control" name="show_num" value="<?php echo $data['show_num'];?>"/>
                                </div>
                            </div>


                            <div class="form-group">
                                <div style="border-bottom: 1px solid #cccccc; text-align: center;">
                                    音频信息
                                </div>
                            </div>

                            <div class="form-group">
                                <div class="text-right col-sm-2">
                                    <label  class=" control-label">音频地址:</label>
                                </div>
                                <div class="col-sm-3">
                                    <input type="text" class="form-control" name="audio_address" value="<?php echo $audio_data['audio_address'];?>"/>
                                </div>
                            </div>

                            <div class="form-group">
                                <div class="text-right col-sm-2">
                                    <label  class=" control-label">音频时长:</label>
                                </div>
                                <div class="col-sm-3">
                                    <input type="text" class="form-control" name="audio_time" value="<?php echo $audio_data['audio_time'];?>"/>
                                </div>
                            </div>

                            <div class="form-group">
                                <div class="text-right col-sm-2">
                                    <label  class=" control-label">音频数据:</label>
                                </div>
                                <div class="col-sm-3">
                                    <textarea cols="55" rows="4" class="form-control" name="audio_data"><?php echo $audio_data['audio_data'];?></textarea>
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="text-right col-sm-2">
                                    <label  class=" control-label">音频内容:</label>
                                </div>
                                <div class="col-sm-3">
                                    <textarea cols="55" rows="4" class="form-control" name="content"><?php echo $audio_data['content'];?></textarea>
                                </div>
                            </div>


                            <div class="form-group">

                                <div class="text-right col-sm-2">
                                    <label  class=" control-label">项目筛选:</label>
                                </div>
                                <div class="col-sm-2">
                                    <select name="order_search" class="form-control">
                                        <option value="1" <?php echo $_REQUEST["order_search"] == 1 ? "selected" : "";?>>订单号</option>
                                        <!-- <option value="2" <?php echo $_REQUEST["order_search"] == 2 ? "selected" : "";?>>预约号</option> -->
                                        <option value="3" <?php echo $_REQUEST["order_search"] == 3 ? "selected" : "";?>>用户昵称</option>
                                        <option value="4" <?php echo $_REQUEST["order_search"] == 4 ? "selected" : "";?>>用户手机号</option>
                                        <option value="5" <?php echo $_REQUEST["order_search"] == 5 ? "selected" : "";?>>商品编号</option>
                                        <option value="6" <?php echo $_REQUEST["order_search"] == 6 ? "selected" : "";?>>商品名称</option>
                                    </select>
                                </div>

                            </div>



                        <div class="form-group">

                            <div class="col-sm-10">
                                <button type="submit" class="btn btn-primary">筛选</button>
                            </div>
                        </div>
                        </form>

                        <div>
                            <!-- Nav tabs -->

                        </div>

                    </div>
                </div>
            </div>
        </div>
    </div>
    <script type="text/javascript">
        $(function () {

            function getDate(num) {
                var t =  24*3600*1000;
                var n = new Date()*1;
                return new Date(n +  num*t).toLocaleDateString().replace(/\//g,'-');
            }

            function setDateRange(type) {
                var $start=$('#datetimepicker1 input');
                var $end=$('#datetimepicker2 input');
                switch(type){
                    case 'dm':
                        $start.val(getDate(-1*(new Date().getDate())+1));
                        $end.val(getDate(0));
                        break;
                    case 'd1':
                        $start.val(getDate(-1));
                        $end.val(getDate(-1));
                        break;
                    case 'd7':
                        $start.val(getDate(-7));
                        $end.val(getDate(0));
                        break;
                    case 'd30':
                        $start.val(getDate(-30));
                        $end.val(getDate(0));
                        break;
                }
            }
            $('#datetimepicker1,#datetimepicker2').datetimepicker({
                language: 'zh-CN',
                minView: "month",
                format:'yyyy-mm-dd',
                initialDate: new Date(),
                autoclose: true,
                todayBtn: true,
            });
            //setDateRange('dm');
            $(".time-range").bind('click',function () {
                setDateRange($(this).data('type'));

            })
        })
    </script>
<?php  include VIEWPATH.'common/footer.php';  ?>